package net.xju_19_20.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component("stu")   // 默认是类名首字母小写
public class Stu {

    @Value("2")
    private int sid;
    @Value("wangwu")
    private String name;
}
